{include file="public:header" /}
<!--广告列表-->
<div class="pad_lr_10">
    <div class="J_tablelist table_list" data-acturi="{:url('Poster/ajaxEdit')}">
		<table width="100%" cellspacing="0">
        <thead>
          <tr>
            <th width="25"><input type="checkbox" name="checkall" class="J_checkall"></th>
            <th width="10">ID</th>
            <th width="150"><span data-tdtype="order_by" data-field="name">广告名称</span></th>
            <th width="80"><span data-tdtype="order_by" data-field="type">类型</span></th>
            <th width="200"><span data-tdtype="order_by" data-field="board_id">广告位</span></th>
            <th>有效期</th>
            <th width="150">添加时间</th>
            <th width="60"><span data-tdtype="order_by" data-field="ordid">排序</span></th>
            <th width="60"><span data-tdtype="order_by" data-field="status">状态</span></th>
            <th width="120">操作</th>
          </tr>
        </thead>
        <tbody>
          {volist name="list" id="val"}
          <tr>
            <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
            <td align="center">{$val.id}</td>
            <td align="center">
                <span data-tdtype="edit" data-field="name" data-id="{$val.id}" class="tdedit">{$val.name}</span>
            </td>
            <td align="center">{$val.type}</td>
            <td align="center">{$val.PosterSpace.name}</td>
              <td>{:date("Y-m-d H:i:s",$val['startdate'])}至{:date("Y-m-d H:i:s",$val['enddate'])}</td>
              <td>{:date("Y-m-d H:i:s",$val['create_time'])}</td>
            <td align="center"><span data-tdtype="edit" data-field="ordid" data-id="{$val.id}" class="tdedit">{$val.ordid}</span></td>
            <td align="center"><img data-tdtype="toggle" data-id="{$val.id}" data-field="status" data-value="{$val.status}" src="__IMG__/toggle_{if condition="$val.status eq 0"}disabled{else/}enabled{/if}.gif" /></td>
            <td align="center">
                {:rights($options,$val['id'],$val['name'],$menuid)}
            </td>
          </tr>
          {/volist}
        </tbody>
      	</table>
		<div class="btn_wrap_fixed">
    		<label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">全选/取消</label>
            <input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:url('Poster/delete')}" data-name="id" data-msg="确定要删除所选记录么？" value="删除" />
    		<div id="pages">{$pages}</div>
    	</div>
    </div>
</div>
{include file="public:footer" /}
</body>
</html>